<template>
  <div>
    <el-tabs type="border-card">
      <el-tab-pane label="用户管理">
        <div>
          <el-form ref="form" :model="form" label-width="100px">
            <div class="formone">
              <el-form-item label="缴费产品：">
                <el-input v-model="form.payname" :disabled="true"></el-input>
              </el-form-item>
              <el-form-item label="缴费人员：">
                <el-input v-model="form.username" :disabled="true"></el-input>
              </el-form-item>

              <el-form-item label="缴费金额：">
                <el-input v-model="form.paymoney" :disabled="true"></el-input>
              </el-form-item>
              <el-form-item label="缴费优先级：">
                <el-input v-model="form.paylevel" :disabled="true"></el-input>
              </el-form-item>

              <el-form-item label="支付时间：">
                <el-input v-model="form.paytime" :disabled="true"></el-input>
              </el-form-item>
              <el-form-item label="支付状态：">
                <el-select
                  v-model="form.coststatus"
                  placeholder="请选择"
                  clearable
                  :disabled="true"
                >
                  <el-option label="已支付" :value="1"></el-option>
                  <el-option label="未支付" :value="2"></el-option>
                </el-select>
              </el-form-item>
            </div>
            <el-form-item label="支付类型:">
              <el-radio v-model="form.costtype" :label="1" :disabled="true"
                ><img
                  src="	http://property.admin.byesame.com/img/zfb1.4e5cf19b.png"
                  alt=""
              /></el-radio>
              <el-radio v-model="form.costtype" :label="2" :disabled="true"
                ><img
                  src="http://property.admin.byesame.com/img/wx1.f21631b0.png"
                  alt=""
              /></el-radio>
              <el-radio v-model="form.costtype" :label="3" :disabled="true"
                ><img
                  src="http://property.admin.byesame.com/img/ysf.a4d32ab5.png"
                  alt=""
              /></el-radio>
            </el-form-item>
            <el-form-item label="回复内容:">
              <p>{{ form.paynum }}</p>
            </el-form-item>
          </el-form>
        </div>
        <div></div>
      </el-tab-pane>
    </el-tabs>
    <el-button class="btn" type="primary" @click="goback">返回</el-button>
  </div>
</template>
  
  <script>
export default {
  data() {
    return {
      form: {
        payname: "",
        name: "",
      },
    };
  },
  created() {
    this.getList();
  },
  methods: {
    async getList() {
      await this.$axios
        .get("/cost/getCostDetail", {
          params: {
            id: this.$route.query.id,
            token: sessionStorage.getItem("token"),
          },
        })
        .then((res) => {
          console.log(res);
          this.form = res.data[0];
          console.log(this.form);
        });
    },
    goback() {
      this.$router.go(-1);
    },
  },
};
</script>
  
<style scoped>
h1 {
  width: 100%;
}
.el-input {
  width: 35vw;
}

.formone {
  display: flex;
  flex-wrap: wrap;
  width: 96%;
  margin-left: 20px;
}

.el-input--medium ::v-deep .el-input__inner {
  width: 35vw;
}
.el-select ::v-deep .el-input__inner {
  width: 35vw;
}
img {
  width: 100px;
}
.btn {
    position: fixed;
    top: 15%;
    right: 3%;
}
</style>